import { t } from '@/locales/i18n';

import { FlowNodeTemplateTypeEnum, FlowNodeTypeEnum } from '../../constant';
import { FlowNodeTemplateType } from '../../node';
import { getHandleConfig } from '../utils';

export const ToolParamsNode: FlowNodeTemplateType = {
  id: FlowNodeTypeEnum.toolParams,
  templateType: FlowNodeTemplateTypeEnum.ai,
  flowNodeType: FlowNodeTypeEnum.toolParams,
  sourceHandle: getHandleConfig(true, true, true, true),
  targetHandle: getHandleConfig(true, true, true, true),
  avatar: 'toolParams.svg',
  name: t('tool_custom_field'),
  intro: t('intro_tool_params_config'),
  version: '4811',
  isTool: true,
  inputs: [],
  outputs: [],
  isFolded: true,
};
